package com.platform.service;

import com.platform.dao.CommissionDao;
import com.platform.entity.CommissionEntity;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Service接口
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-09 17:28:39
 */
@Service("commissionService")
public class CommissionService {
    @Autowired
    private CommissionDao commissionDao;

    public CommissionEntity queryObject(Integer id) {
        return commissionDao.queryObject(id);
    }

    public List<CommissionEntity> queryList(Map<String, Object> map) {
        return commissionDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return commissionDao.queryTotal(map);
    }

    public int save(CommissionEntity commission) {
        return commissionDao.save(commission);
    }

    public int update(CommissionEntity commission) {
        return commissionDao.update(commission);
    }

    public int delete(Integer id) {
        return commissionDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return commissionDao.deleteBatch(ids);
    }
    public Map<String,Object> statisticsCommission(Map<String, Object> params){
    	return commissionDao.statisticsCommission(params);
    }
}
